﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using KVB.Common;
using Customer_Profile.eCard.DBDao;

namespace Customer_Profile.eCard
{
    public partial class refund : System.Web.UI.Page
    {
        string dealno = "";
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request["dealno"] != null)
            {
                dealno = Request["dealno"].ToString();
            }
        }

        protected void btnRefund_Click(object sender, EventArgs e)
        {
            string Refund_date = txtRefundDate.Text.Trim();
            bool bok = DealDao.Refund(dealno, Refund_date);
            if (bok)
                Response.Write("<script language=javascript>alert('success');</script>");
            else
                Response.Write("<script language=javascript>alert('error');</script>");
        }
    }
}